import Layout from "@/layout";

export default {
  path: "/employees",
  component: Layout,
  name: "employees",
  children: [
    {
      path: "", // 默认子级路由
      name: "employees",
      component: () => import("@/views/employees"),
      meta: {
        title: "员工管理",
        icon: "people",
      },
    },
    {
      path: "detail/:id", // 动态路由
      component: () => import("@/views/employees/detail"),
      hidden: true,
    },
    {
      path: "print/:id",
      component: () => import("@/views/employees/print"),
      hidden: true,
    },
  ],
};
